<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<ui:composition template="../templates/content.xhtml"
	xmlns="http://www.w3.org/1999/xhtml"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.prime.com.tr/ui"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:ui="http://java.sun.com/jsf/facelets">

	<link rel="StyleSheet" type="text/css"
		href="#{facesContext.externalContext.requestContextPath}/css/estilos.css"
		media="screen" />


	<div class="content">
		<ui:define name="content">
			<h:head>
				<title>Login</title>
			</h:head>
			<h:body>
				<h:form>
					<p:panel header="Cadastro de  Usuário">
						<h:panelGrid columns="3" >
							<br></br><br></br><br></br>
							<h:outputLabel value="Nome * " for="nome" />
							<p:inputText id="nome" value="#{cadastroBean.login.nome}" />
							<br></br>
							<br></br>
							<h:outputLabel value="Usuário * " for="usuario" />
							<p:inputText id="usuario" value="#{cadastroBean.login.usuario}" />
							<br></br>
							<br></br>
							<h:outputLabel value="Senha * " for="senha" />
							<p:password id="senha" value="#{cadastroBean.login.senha}" />
							<br></br>
							<br></br>
							
						</h:panelGrid>
						<p:commandButton style="margin-left: 5px;" value="Voltar" action="#{cadastroBean.voltarLogin}"></p:commandButton>
							<p:commandButton style="margin-left: 15px;"  value="Cadastrar" action="#{cadastroBean.login}"></p:commandButton>
					</p:panel>

				</h:form>
			</h:body>
			</ui:define>
			</div>
</ui:composition>